package com.lsj.thread;

/**
 * Created by Tony on 2016/4/28.
 */
public class Thread1 extends Thread {
    private int count = 5;

    public Thread1(String name) {
        super();
        this.setName(name);
    }

    @Override
    public void run() {
        super.run();

        while (count > 0) {
            count--;
            System.out.println("由" + this.currentThread().getName() + "计算，count=" + count);
        }
    }
}
